package com.zhangxi.line.dao.impl;

import com.zhangxi.line.dao.BaseDao;
import com.zhangxi.line.dao.NewsTypeDao;
import com.zhangxi.line.pojo.NewsType;

import java.util.List;

/**
 * ClassName: NewsTypeDaoImpl
 * Package: com.zhangxi.line.dao.impl
 */
public class NewsTypeDaoImpl extends BaseDao implements NewsTypeDao {
    @Override
    public List<NewsType> findAll() {
        String sql ="select tid,tname from news_type";
        return  baseQuery(NewsType.class, sql);
    }
}